package com.jiangyg.mall.core.support.restful;

import com.jiangyg.mall.core.support.validation.constraints.AlphanumericUnderline;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 类描述：排序
 * 
 * @author jiangyg
 * @date 2020-07-26
 * @version 2.0
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 字段名
     */
    @AlphanumericUnderline
    private String name;

    /**
     * 是否正序排序，默认正序
     */
    private boolean asc = true;

}
